package com.finger.crowd.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class CrowdWebMvcConfig implements WebMvcConfigurer {
    public void addViewControllers(ViewControllerRegistry registry) {

        String urlPath = "/auth/member/to/reg/page.html";

        String viewName = "member-reg";

        registry.addViewController(urlPath).setViewName(viewName);

        registry.addViewController("/auth/member/to/login").setViewName("member-login");

        registry.addViewController("/auth/member/to/crowd").setViewName("member-crowd");

        registry.addViewController("/auth/member/to/member").setViewName("member");
    }
}
